Ext.define('App.datacollection.interface.view.CollectionInterfaceList', {
    extend: 'Extend.grid.CrudGridPanel',
    alias: 'widget.CollectionInterfaceList',
    requires: ['App.datacollection.interface.model.CollectionInterfaceViewModel'],
    viewModel: 'CollectionInterfaceViewModel',
    bind: {
        store: '{Query}',
        columns: '{columns}',
        search: '{search}'
    },
    config: {
        tbar: {
            quickCreate: {
                hidden: false
            }
        }
    },
    editor: {
        formClazz: 'App.datacollection.interface.view.CollectionInterfaceEditor',
        save: 'datacollection/interface/save',
        get: 'datacollection/interface/get_by_id',
        del: 'datacollection/interface/deletes'
    },
    addHandler: function () {
        this.editHandler(null, false, {
            project: {
                id: this.projectId
            }
        });
    }
});